package compSci.project.database.GUI;

import java.awt.EventQueue;
import javax.swing.JFrame;
import java.awt.BorderLayout;

public class GUI {

	private JFrame frame;
	
	/**
	 * Launch the application.
	 */
	public static void launch(){
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					GUI window = new GUI();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
	/**
	 * Create the application.
	 */
	public GUI() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setExtendedState(frame.getExtendedState() | JFrame.MAXIMIZED_BOTH);
		frame.setLocation(0,0);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		//set default menu bar
		MenuBar mb = new MenuBar();
		frame.setJMenuBar(mb);
		
		//tool bar
		ToolBar tb = new ToolBar();
		frame.getContentPane().add(tb, BorderLayout.NORTH);
		
		ADD ad = new ADD();
		frame.add(ad);
	}

}
